
import static java.lang.System.out;


public class FizzBuzz{

    public static Boolean isDivisibleByThree(int number){
        if(number % 3 == 0) {
            return true;
        }else{
            return false;
        }
    }

    public static Boolean isDivisibleByFive(int number){
        if(number % 5 == 0){
            return true;
        }else{
            return false;
        }
    }

    public static Boolean isDivisibleByFifteen(int number){
        if(isDivisibleByThree(number)==true && isDivisibleByFive(number) == true) {
            return true;
        }else{
            return false;
        }
    }

    public static void fizzBuzz(int numbersUpTo){
        for(int i=1; i<= numbersUpTo; i++){
            if(isDivisibleByFifteen(i)==true){
                out.println("fizzbuzz");
            }else if(isDivisibleByThree(i) == true){
                out.println("fizz");
            }else if(isDivisibleByFive(i) == true){
                out.println("buzz");
            }else{
                out.println(i);
            }
        }
    }

    public static void main(String[] args) {
        fizzBuzz(100);
    }

}